let mysql_conncection = require("./MYSQL_CONNECTION_CONFIGURATION")

module.exports =  function (SQL, ParameterArray) {
        return new Promise((resolve,reject) => {
                mysql_conncection.query(SQL, ParameterArray, (error, results) => {
                    if (error) {
                        reject(error)
                    } else {
                        resolve(results);
                    }
                })
        })
    }
